﻿using CuaHangLego.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CuaHangLego.Model
{
    public class SanPhamKho : SanPham
    {
        public int SoLuong { get; set; }
        public bool IsVisible { get; set; }
        public int GiaMua { get; set; }

        public SanPhamKho()
            : base()
        {
            this.SoLuong = 0;
            this.IsVisible = true;
            this.GiaMua = 0;
        }

        public SanPhamKho(SanPham sp)
            : base(sp)
        {
            this.IsVisible = true;
            this.GiaMua = 0;
        }

        public SanPhamKho(SanPham sp, int GiaMua, int SoLuong, bool IsVisible)
            : base(sp)
        {
            this.GiaMua = GiaMua;
            this.SoLuong = SoLuong;
            this.IsVisible = IsVisible;
        }

        public override string ToString()
        {
            return base.ToString();
        }
    }
}
